import pymysql
db = pymysql. connect(host="Localhost", user="root", password="123", database="bank1.0",port=3306,charset='utf8')
cur = db.cursor()
cur2=db.cursor()
cur.execute('select * from cardinfo')
cur2.execute('desc cardinfo')

result=cur.fetchall()
result2=cur2.fetchall()

print(result)
print(result2)